package cn.parus.dynamicRouter.entity;

/**
 * @Author: Axel
 * @Description: TODO API配置信息类
 * 尽量减少无关依赖的使用
 **/
public class ApiInfo {
    /**
     * 唯一主键
     */
    private String id;
    /**
     * 服务ID
     */
    private String serviceId;
    /**
     * 转发地址；URI
     */
    private String routePath;
    /**
     * 断言；访问路径
     */
    private String requestPath;

    /**
     * 构造器、Getter 和 Setter 方法
      */
    public ApiInfo(String id, String serviceId, String routePath, String requestPath) {
        this.id = id;
        this.serviceId = serviceId;
        this.routePath = routePath;
        this.requestPath = requestPath;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getServiceId() {
        return serviceId;
    }

    public void setServiceId(String serviceId) {
        this.serviceId = serviceId;
    }

    public String getRoutePath() {
        return routePath;
    }

    public void setRoutePath(String routePath) {
        this.routePath = routePath;
    }

    public String getRequestPath() {
        return requestPath;
    }

    public void setRequestPath(String requestPath) {
        this.requestPath = requestPath;
    }
}
